<div class="media-item">
  @can('destroy', $reply)
  <span style="float: right;">
    <form action="{{ route('replies.destroy', $reply->id) }}" method="post"
          style="display: inline-block;"
          onsubmit="return confirm('您确定要删除吗？');">
      {{ csrf_field() }}
      {{ method_field('DELETE') }}
      <button title="删除回复" type="submit">
        <i class="far fa-trash-alt"></i>
      </button>
    </form>
  </span>
  @endcan
  <a href="javascript:;" class="media-item-left">
    <img class="img-xs" src="{{$reply->user->avatar}}">
  </a>

  <div class="media-text">
    <div>
        <a href="{{route('users.show', $reply->user_id)}}">{{$reply->user->name}}</a>
        <mdall> {{$reply->created_at}}</mdall>
    </div>

    <div>{{$reply->content}}</div>
  </div>
</div>
